<?php
/**
 * Created by PhpStorm.
 * User: 王松
 * Time: 2017/11/22 13:50
 */

namespace App\Project\Search\Exception;

class MedicalRecordSearchException extends \Exception
{
    protected $message = '参数错误。';

    public function __construct($message)
    {
        $this->code = 406;

        if (env('APP_DEBUG')) {
            $this->message = $message;
        }
    }
}